# 路由

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hi():
    return 'hello flask'

@app.route('/user/<id>')
def index(id):
    if id == '1':
        return 'python'
    if id == str(2):
        return 'django'
    if int(id) == 3:
        return '<h1> c <h1>'
    return 'hello id'

# @app.route('/hello', methods = ['GET', 'POST'])
# def hello():
#     return 'hello world'

# @app.route('/hi', methods = ['POST'])
# def hii():
#     return 'hi'


if __name__ == '__main__':
    app.run()